package com.neuedu.yyzx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neuedu.yyzx.dto.NurseRecordDTO;
import com.neuedu.yyzx.po.Nurserecord;
import com.neuedu.yyzx.service.NurserecordService;
import com.neuedu.yyzx.mapper.NurserecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author HordEmpty
* @description 针对表【nurserecord】的数据库操作Service实现
* @createDate 2025-04-09 10:13:49
*/
@Service
public class NurserecordServiceImpl extends ServiceImpl<NurserecordMapper, Nurserecord>
    implements NurserecordService{
    @Autowired
    private NurserecordMapper nurserecordMapper;
    @Override
    public Page<NurseRecordDTO> pageDetails(Page<NurseRecordDTO> page, LambdaQueryWrapper<Nurserecord> queryWrapper){
        IPage<NurseRecordDTO> result = nurserecordMapper.pageDetails(page, queryWrapper);
        Page<NurseRecordDTO> resultPage = new Page<>(result.getCurrent(), result.getSize(), result.getTotal());
        resultPage.setRecords(result.getRecords());
        return resultPage;
    }

}




